<%@ page language="java"  pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<style>
.pageFormContent p{width: 99%;}
.pageFormContent p label{width: 110px;}
span.error{z-index: 999;left: 290px;}
</style>
<div class="pageContent">
	<form method="post" action="saveActivity?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="58">
			<p>
				<label>活动编号：</label>
				<input type="text" name="activtyNumber" size="30" maxlength="64" value="" class="required" />
			</p>
			<p>
				<label>活动名称：</label>
				<input type="text" name="activtyName" size="30" maxlength="128" value="" class="required" />
			</p>
			<p>
				<label>结算客户：</label>
				<select name="customerId" class="required combox">
					<option value="">-选择结算客户-</option>
					<c:forEach var="c" items="${customerList }">
						<option value="${c.id }">${c.customerName }</option>
					</c:forEach>
				</select>
				<span style="color:#f00; line-height: 22px; padding-left:6px;">(注: 没有结算客户数据时, 请先新增)</span>
			</p>
			<p>
				<label>开始时间：</label>
				<input type="text" name="startTime" size="27" datefmt="yyyy-MM-dd HH:mm:ss" class="required date" readonly="readonly"/>
				<a class="inputDateButton" href="javascript:;">选择</a>
			</p>
			<p>
				<label>结束时间：</label>
				<input type="text" name="endTime" size="27" datefmt="yyyy-MM-dd HH:mm:ss" class="required date" readonly="readonly"/>
				<a class="inputDateButton" href="javascript:;">选择</a>
			</p>
			<p>
				<label>佣金分成比：</label>
				<input name="brokerageRate" class="required number" min="1" max="100" maxlength="8" type="text" size="26" />
				<span style="color:#00f; line-height: 22px;">(%)</span>
				<span style="color:#f00; line-height: 22px; padding-left:6px;">(注: 只能输入1 至 100之间的数字)</span>
			</p>
			<p style="width:400px;">
				<label>活动备注：</label>
				<textarea rows="4" cols="27" name="activtyDesc" maxlength="512"></textarea>
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent">
					<button type="submit">保存</button></div>
					</div>
				</li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>

